<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
	<link rel="icon" href="<c:url value='/images/favicon.ico'/>">
	
	<title>top登录</title>
	<!-- 新 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
	
	<!-- 可选的Bootstrap主题文件（一般不用引入） -->
	<link rel="stylesheet"
		href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
		
	<link rel="stylesheet"
		href="<c:url value='/css/user/login.css'/>">
	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
	
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
	<nav class="navbar navbar-default navbar-fixed-top">
	  <div class="container">
	  	<div class="navbar-header">
	      <a class="navbar-brand" href="#">A-Bookstore</a>
	    </div>
	    <form class="navbar-form navbar-left" role="search">
       		<div class="form-group">
          		<input type="text" class="form-control" placeholder="请输入关键字...">
        	</div>
        	<button type="submit" class="btn btn-default">搜索</button>
    	</form>
			<div class="nav navbar-nav">
				<c:choose>
					<c:when test="${empty sessionScope.sessionUser }">
						<p class="navbar-text">
							会员:<a href="<c:url value='/jsps/user/login.jsp'/>" style="margin-left: 5px;">请登录</a>
						</p>
					</c:when>
					<c:otherwise>
						<p class="navbar-text">
							会员:<a href="#" style="margin-left: 5px;">${sessionScope.sessionUser.loginname }</a>
						</p>
						<p class="navbar-text">
							<a href="<c:url value='/UserServlet?method=quit'/>">退出</a>
						</p>
						<ul class="nav navbar-nav">
							<li><a href="#">我的购物车 <span class="sr-only">(current)</span></a></li>
							<li><a href="#">我的订单</a></li>
							<li><a href="<c:url value='/jsps/user/pwd.jsp'/>" target="_blank">修改密码</a></li>
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown" role="button" aria-haspopup="true"
								aria-expanded="false">关于我们<span class="caret"></span></a>
								<ul class="dropdown-menu">
									<li><a href="#">Action</a></li>
									<li><a href="#">Another action</a></li>
									<li><a href="#">Something else here</a></li>
									<li role="separator" class="divider"></li>
									<li><a href="#">Separated link</a></li>
									<li role="separator" class="divider"></li>
									<li><a href="#">One more separated link</a></li>
								</ul>
							</li>
						</ul>
					</c:otherwise>
				</c:choose>
				
			</div>

			<div class="navbar-right">
            <button type="button" class="btn btn-default navbar-btn">登录</button>
            <button type="button" class="btn btn-primary navbar-btn">注册</button>
         </div>
	  </div>
	</nav>
</body>
</html>
<%-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>top</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
	body {
		background: #15B69A;
		margin: 0px;
		color: #ffffff;
	}
	a {
		text-transform:none;
		text-decoration:none;
		color: #ffffff;
		font-weight: 900;
	} 
	a:hover {
		text-decoration:underline;
	}
</style>
  </head>
  
  <body>
<h1 style="text-align: center;">Asura网上书城</h1>
<div style="font-size: 10pt; line-height: 10px;">

		  <a href="<c:url value='/jsps/user/login.jsp'/>" target="_parent">会员登录</a> |&nbsp; 
		  <a href="<c:url value='/jsps/user/regist.jsp'/>" target="_parent">注册会员</a>

		      会员：张三&nbsp;&nbsp;|&nbsp;&nbsp;
		  <a href="<c:url value='/jsps/cart/list.jsp'/>" target="body">我的购物车</a>&nbsp;&nbsp;|&nbsp;&nbsp;
		  <a href="<c:url value='/jsps/order/list.jsp'/>" target="body">我的订单</a>&nbsp;&nbsp;|&nbsp;&nbsp;
		  <a href="<c:url value='/jsps/user/pwd.jsp'/>" target="body">修改密码</a>&nbsp;&nbsp;|&nbsp;&nbsp;
		  <a href="<c:url value='/jsps/user/login.jsp'/>" target="_parent">退出</a>	

</div>
  </body>
</html> --%>
